package com.quzi.kettle;

import java.util.HashMap;
import java.util.Map;

/**
 * 全局变量
 * 
 * @author zhongjunwei
 * 
 */
public class GlobalConfig {

	public static final String UsedMode = "USEDMODE";
	public static final String isChulv = "chulv";
	public static final String isVoice = "voice";
	public static final String isBoiled = "boiled";
	public static final String isWarm = "warm";
	public static final String WaterLevel = "waterLevel";
	public static byte WHATMODE = (byte) 0;
	public static String topic = "";
	// SharePerference
	public static final String MAC = "macaddr";

	public static final String TargetTemp = "targetTemperature";
	public final static String MODE = "mode";

	public final static int APP_PORT = 9234;

	public static final String SCANRESULT = "scanresult";
	public static final String UDPRESULT = "udpresult";
	// public static String topic = "c893464733f7";
	public static String Filter_Send = "send/";
	public static String Filter_Receive = "receive/";

	public static final String BROKER_URL = "tcp://kettle.qiweiglobal.com:61613";
	public static String clientId = "Android";
	public static final String userName = "admin";
	public static final String passWord = "password";

	public static final String mUrl = "http://kettle.qiweiglobal.com:8001";
	/** 验证码 */
	public static final int AURH_SEND = 1;
	/** 用户类 */
	public static final int USER_REG = 2;
	public static final int USER_LOGIN = 3;
	public static final int USER_UPLOADICON = 4;
	public static final int USER_DOWNLOADICON = 5;
	public static final int USER_FORGOTPWD = 6;

	/** 设备 */
	public static final int DEVICE_BIND = 7;
	public static final int DEVICE_UNBIND = 8;
	public static final int DEVICE_LISE = 9;
	public static final int DEVICE_INFO = 10;
	public static Map<Integer, String> map = new HashMap<Integer, String>();
	static {
		map.put(AURH_SEND, "/api/code/send");
		map.put(USER_REG, "/api/user/register");
		map.put(USER_LOGIN, "/api/user/login");
		map.put(USER_UPLOADICON, "/api/user/icon");
		map.put(USER_DOWNLOADICON, "/api/user/icon");
		map.put(USER_FORGOTPWD, "/api/forget/psw");
		map.put(DEVICE_BIND, "/api/device/bind");
		map.put(DEVICE_UNBIND, "/api/device/unbind");
		map.put(DEVICE_LISE, "/api/device/list");
		map.put(DEVICE_INFO, "/api/reg/devices");
	}

}
